package com.gxar.quick.ar.server.base.model.user.vo.response;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author linsy
 * @version 1.0
 * @created 2023/11/14 10:19
 */
@Data
@ApiModel("校验用户权益响应模型")
public class VerifyRightsResponse {

    @ApiModelProperty("是否可用，false-否，true-是")
    @JSONField(name = "available")
    @JsonProperty("available")
    private Boolean available;
    @ApiModelProperty("总可用量")
    @JSONField(name = "total_number")
    @JsonProperty("total_number")
    private Integer totalNumber;
    @ApiModelProperty("已使用量")
    @JSONField(name = "use_number")
    @JsonProperty("use_number")
    private Integer useNumber;
    @ApiModelProperty("不可用原因")
    @JSONField(name = "reason")
    @JsonProperty("reason")
    private String reason;

    {
        this.available = true;
    }

}
